package com.kodcu.web.training.content;

import com.kodcu.web.component.EpostaKayitPanel;
import com.kodcu.web.training.TrainingPage;
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.panel.Panel;

public class TrainingMainPanel extends Panel {


    private static final long serialVersionUID = 1L;

    public TrainingMainPanel(String id, PageParameters params) {
        super(id);

        EpostaKayitPanel epostaPanel = new EpostaKayitPanel("epostaPanel");
        add(epostaPanel);

        //add java programlama dili
        PageParameters paramsJavaTraining = new PageParameters();
        paramsJavaTraining.add("0", "java-programlama-dili-egitimi"); // java training page
        BookmarkablePageLink javaProglamaDili =
                new BookmarkablePageLink("JPD", TrainingPage.class, paramsJavaTraining);
        add(javaProglamaDili);

        // add apache wicket
        PageParameters paramsApacheWicket = new PageParameters();
        paramsApacheWicket.add("0", "apache-wicket-spring-egitimi"); // wicket yonelik
        BookmarkablePageLink apacheWicket =
                new BookmarkablePageLink("AW", TrainingPage.class, paramsApacheWicket);
        add(apacheWicket);

        // add java programlama dili kayit sayfasi
        PageParameters kayitJPDParam = new PageParameters();
        kayitJPDParam.add("0", "kodcu-com-java-egitimlerine-kayit"); // java training page
        BookmarkablePageLink kayitJPDLink =
                new BookmarkablePageLink("kayitJPD", TrainingPage.class, kayitJPDParam);
        add(kayitJPDLink);

        // add Apache - Spring dili kayit sayfasi
        PageParameters apacheWicketParam = new PageParameters();
        apacheWicketParam.add("0", "kodcu-com-java-egitimlerine-kayit"); // java training page
        BookmarkablePageLink kayitAWLink =
                new BookmarkablePageLink("kayitAW", TrainingPage.class, apacheWicketParam);
        add(kayitAWLink);

    }

}
